import QtQuick 2.7
import QtQuick.Controls 2.12
import QtQuick.Layouts 1.1
import QtQml.Models 2.2

import iproapps.besttodolist 1.0

MainPageForm {

    TaskListDelegateModel {
        id: delegateModelId
        visualModel.model: backend.taskModel
        listView: parent.listView
    }
    listView.model: delegateModelId.visualModel
    listView.spacing: 4


    buttonNewTask.onClicked: {
        buttonNewTask.visible = false;
        newTaskBottom.visible = true;
        newTaskBottom.getFocus();

    }

    Keys.onEscapePressed: {
        newTaskBottom.visible = false;
        buttonNewTask.visible = true;
    }

}
